<template>
<table
    class="water-cp-container"
    border="1">
    <tr class="top-container">
        <td class="left">
            油气田水类型判识-地层水 基础数据
        </td>
        <td class="right">
            当前报告
        </td>
    </tr>
    <tr class="content-container">
        <td class="left">
            <div class="container">
                <table border="1">
                    <tr>
                        <th>井号</th>
                        <th>层位</th>
                        <th>Ph值</th>
                        <th>硫酸根含量（mg/L）</th>
                        <th>油气田水类型</th>
                    </tr>
                    <tr
                        v-for="(item,index) in dataList"
                        :key="index">
                        <td>{{item.wellNo}}</td>
                        <td>{{item.horizon}}</td>
                        <td>{{item.ph}}</td>
                        <td>{{item.so4Lon}}</td>
                        <td>{{item.waterType}}</td>
                    </tr>
                </table>
            </div>
        </td>
        <!-- <td class="right">
            <div class="chart">
                <table border="1">
                    <tr>
                        <th>井号</th>
                        <th>层位</th>
                        <th>Ph值</th>
                        <th>硫酸根含量（mg/L）</th>
                        <th>油气田水类型</th>
                    </tr>
                    <tr
                        v-for="(item,index) in reportData"
                        :key="index">
                        <td>{{item.wellNo}}</td>
                        <td>{{item.horizon}}</td>
                        <td>{{item.ph}}</td>
                        <td>{{item.so4Lon}}</td>
                        <td>{{item.waterType}}</td>
                    </tr>
                </table>
            </div>
        </td> -->
    </tr>
</table>
</template>
<script>
/*
 油气田水类型判识-地层水展示页面
 */
export default {
    props:{
        dataList:{  //数据数组
            type:Array,
            default:()=>[],
        },
        fontColor:{
            type:String,
            default:'',
        },
        borderColor:{
            type:String,
            default:'',
        },
        chartBorderColor:{
            type:String,
            default:'',
        },
    },
    data() {
        return {
           
        };
    },
};
</script>
<style scoped lang="scss">
.water-cp-container{
    width: 100%;
    height: fit-content;
    text-align: left;
    color: var(--font-color);
    box-sizing: border-box;
    border-collapse: collapse;
    border-color: var(--border-color);
    border: 1px solid var(--border-color);
    table-layout:fixed;
    >tr{
        >td{
            vertical-align: top;
            &:last-child{
                width: 50%;
            }
        }
    }
    >.top-container{
        >td{
            font-size: 1.5rem;
            font-weight: bold;
            padding: 1rem;
            box-sizing: border-box;
            line-height: 1;
            box-sizing: border-box;
        }
    }
    >.content-container{
        .base-data-title{
            font-size: 1.5rem;
            text-align: left;
        }
        table{
            width: 100%;
            height: fit-content;
            border-collapse: collapse;
            border-color: #0f4b78;
            border: 1px solid #0f4b78;
            td,th{
                padding: 1rem 0.5rem;
                text-align: center;
                font-size: 0.8rem;
                box-sizing: border-box;
                border: 1px solid var(--border-color);
                &:nth-child(3),&:nth-child(4){
                    background-color: #ffee00;
                    color: #0f4b78;
                }
            }
            th{
                font-size: 1rem;
                font-weight: bold;
            }
        }
        >.left{
            >.container{
                max-height: 30rem;
                overflow: auto;
                padding: 1rem;
                box-sizing: border-box;
                width: 100%;
                text-align: center;
                display: grid;
                grid-gap: 1rem;
                >.base-data-title{
                    font-size: 1.5rem;
                }
            }
        }
        >.right{
            >.chart{
                max-height: 30rem;
                overflow: auto;
                padding: 1rem;
                box-sizing: border-box;
                display: grid;
                grid-gap: 1rem;
            }
        }
    }
    >.bottom-container{
        >.container{
            padding: 1.5rem 1rem;
            font-size: 1.5rem;
            color: #99a9bf;
            box-sizing: border-box;
            span{
                font-size: 1.7rem;
                color: var(--font-color);
            }
            .data{
                font-size: 2rem;
                color: #00c57a;
                font-weight: bold;
            }
        }
    }
}
</style>
